<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>1-1-2</title>
</head>
<body>
    
</body>

<script>
    var grade="差";
    switch(grade){
        case"优":
        document.write("该生成绩优秀");
        break;
        case"良":
        document.write("该生成绩良好");
        break;
        case"一般":
        document.write("该生成绩合格");
        break;
        default:
        document.write("该生成绩不合格");
        break;
    }
</script>
    
